A BASIC library for the Pi-Stop traffic light boards from 4Tronix

The Pi-Stop is a low cost hardware module designed to allow Raspberry Pi users to take their first steps into interfacing with the real world. Designed with the learning in mind, everyone will recognise and identify its familiar elements encouraging their use along-side their own projects.

By plugging the Pi-Stop directly on to the Raspberry Pi GPIO header, no extra cables or wires are needed. Unlike many other add-on boards, they do not block unused GPIO pins, keeping them open for other uses. The Pi-Stop can be fitted in up to 8 standard locations, allowing up to six Pi-Stops to be controlled simultaneously, independently or combined with other hardware.

The Pi-Stop can be bought from https://shop.4tronix.co.uk/products/pi-stop-educational-pistop-traffic-light-add-on-for-raspberry-pi or other Raspberry Pi accessory sellers.